package com.collection.provider.business.dao;

import com.collection.api.entity.UBase;
import com.collection.api.entity.UBaseExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface UBaseMapper {
    int countByExample(UBaseExample example);

    int deleteByExample(UBaseExample example);

    int deleteByPrimaryKey(Long id);

    int insert(UBase record);

    int insertSelective(UBase record);

    List<UBase> selectByExample(UBaseExample example);

    UBase selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") UBase record, @Param("example") UBaseExample example);

    int updateByExample(@Param("record") UBase record, @Param("example") UBaseExample example);

    int updateByPrimaryKeySelective(UBase record);

    int updateByPrimaryKey(UBase record);
    //在全部中加入专员的类型type则查出时专员的
    List<Map<String, Object>> selectUbaseAll(Map<String, Object> map);
    int selectUbaseCount(Map<String, Object> map);
    
    //经理
    List<Map<String, Object>> selectUbaseAllSH(Map<String, Object> map);
    int selectUbaseCountSH(Map<String, Object> map);
}